package net.lainiao.morethread.Chapter3.demo2;


/**
 * Created by Administrator on 2017/3/1.
 */
public class Main {
    public static void main(String[] args) {
        PrintQueue printQueue=new PrintQueue();
        Thread[] threads=new Thread[3];
        for (int i = 0; i < 3; i++) {
            threads[i]=new Thread(new Job(printQueue),"Thread-"+i);
        }
        for (int i = 0; i < 3; i++) {
            threads[i].start();
        }
    }
}
